import { NativeModules } from 'react-native';

type TextRulerType = {
  measureTexts(dataList: object[]): Promise<[[]]>;
};

const { TextRuler } = NativeModules;

const TRuler = TextRuler as TextRulerType;

export { TRuler };
